package com.k.kpp.util.rpc.netty.udp.server;

import io.netty.channel.ChannelHandlerContext;

import java.net.InetSocketAddress;


public class NettyUdpResponseQueue {
    private ChannelHandlerContext channelHandlerContext;
    private InetSocketAddress from;
    private String data;

    public NettyUdpResponseQueue(ChannelHandlerContext channelHandlerContext, InetSocketAddress f,String data) {
        this.channelHandlerContext = channelHandlerContext;
        this.from = f;
        this.data = data;
    }

    public ChannelHandlerContext getChannelHandlerContext() {
        return channelHandlerContext;
    }

    public void setChannelHandlerContext(ChannelHandlerContext channelHandlerContext) {
        this.channelHandlerContext = channelHandlerContext;
    }

    public InetSocketAddress getFrom() {
        return from;
    }

    public void setFrom(InetSocketAddress from) {
        this.from = from;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
